<div id="time">
	<%= Time.now %>
</div>

<div id="member">
	<h2>Member Information</h2>
	<b id="label_memberName">Name:</b> <%= @member.name %><br/>
	<div id="characters">
		<h3>My Characters</h3>
		<ul>
			<% for character in @member.characters %>
			<li><%= link_to character.name, :controller => 'characters', :action => 'show', :id => character %></li>
			<% end %>
			<li><%= link_to "Create New Character", :action => 'new_character' %>
		</ul>
	</div>
</div> <!-- member -->

<% if @member.is_admin? %>
<div id="admin">
	<h2>Administrative</h2>
	<ul>
		<% if @member.can_edit_permissions or @member.can_edit_any_member%>
			<li><%= link_to "Edit Members", :controller => 'members', :action => 'list' %></li>
		<% end %>
	</ul>
<% end %>

<div id="missions">
	<h2>Missions</h2>
	<% if @member.can_make_missions == 1 %>
	<h3><%= link_to 'Plan New Mission', :controller => 'missions', :action => 'new', :member => @member %></h3>
	<% end %>
	<div id="my_missions">
		<h3>My Upcoming Missions</h3>
		<%= render :partial => 'missions', :object => @my_upcoming_missions,
			   	   :locals => { :is_regd => true } %>
	</div>
	<div id="available_missions">
		<h3>Available Missions</h3>
		<%= render :partial => 'missions', :object => @available_missions, 
				   :locals => { :is_regd => false } %>
	</div>
</div> <!-- Missions -->

<!--
<ul>
	<li><%= link_to 'Missions', :controller => 'missions', :action => 'list' %></li>	
	<li><%= link_to 'Members', :controller => 'members', :action => 'list' %></li>
	<li><%= link_to 'Comms Types', :controller => 'comms_types', :action => 'list' %></li>
	<li><%= link_to 'Mission Types', :controller => 'mission_types', :action => 'list' %></li>
</ul>
-->